<?php

namespace app\index\model;

use coser\Db;

class MediaModel
{
	/*
	 *[添加]
	 */
	public function add($data)
	{
		$list = Db::name('media')->insert($data);
		var_dump($list);
	}
	
	/*
	 *[获取列表]
	 */
	public function getList($where)
	{
		$list = Db::name('media')->where($where)->select();
		return $list;
	}
	
	
}